package cn.flexui.flexuiserver.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * <p>
 * 对话记录
 * </p>
 *
 * @author apeto
 * @since 2024-09-17 07:08:21
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("chat_record")
@Schema(name = "ChatRecord", description = "对话记录")
public class ChatRecord extends BaseEntity<ChatRecord> {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "请求id")
    @TableField("request_id")
    private String requestId;

    @Schema(description = "信息")
    @TableField("content")
    private String content;

    @Schema(description = "角色")
    @TableField("message_type")
    private String messageType;

    @Schema(description = "content媒介")
    @TableField("media")
    private String media;
}
